package com.itheima.service;

import com.itheima.domain.CheckGroup;
import com.itheima.result.PageResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(readOnly = true)
public interface CheckGroupService {
    @Transactional(readOnly = false)
    public void add(CheckGroup checkGroup, Integer[] checkitemIds);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    CheckGroup findById(Integer id);

    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);
    @Transactional(readOnly = false)
    void edit(CheckGroup checkGroup, Integer[] checkitemIds);
    @Transactional(readOnly = false)
    boolean delete(Integer id);

    List<CheckGroup> findAll();
}
